<script type="text/javascript" >
    sttheme.load_tooltip();
    sttheme.on_submitform('#settingForm', function(){
        sttheme.loadPage('index', '', '<?php _e("Successful", $config['plugin_name']) ?>');
    });
 sttheme.loadUploadButton();
    sttheme.loadRemoveButton();
</script>
<div class="w100p bgl">
    <div class="w100p bgr p5b">
        <form class="stform" id="settingForm" action="<?php echo admin_url('/admin.php?page=' . $config['theme_name'] . '&action=' . $current_action) ?>" method="post" >
            <br clear="both" />
            <ul>

                <li>
                    <label><?php _e('Logo link', $config['theme_name']) ?>:</label>
                    <div>
                        <input value="<?php echo $option['logolink'] ?>" class="" name="data[logolink]"  type="text"/>
                    </div>
                    <br clear="both" />
                </li>
                <li>
                    <label><?php _e('Header left image', $config['sttheme']); ?>:</label>
                    <div class="required">
                        <?php
                        $class_hide = "hide";
                        if (!empty($option['headerimg'])) {
                            $stplugin_picture_url = $option['headerimg'];
                            $class_hide = "";
                        }
                        ?>
                        <input value="<?php echo $stplugin_picture_url ?>"  name="data[headerimg]" id="id_stplugin_picture" type="hidden"/>
                        <div class="upload_button_div">
                            <span id="stplugin_picture_thele" class="button image_upload_button">Upload photo</span>
                            <span pictureID="stplugin_picture_thele" id="reset_stplugin_picture_thele" class="button image_reset_button <?php echo $class_hide ?>">Remove</span>
                        </div>
                        <?php
                        if (!empty($option['headerimg'])) {
                            ?>
                            <img alt="" src="<?php echo $stplugin_picture_url ?>" id="image_stplugin_picture_thele" class="hide preview" style="display: inline;"/>
                        <?php } ?>
                    </div>
                    <br clear="both" />
                </li>
              
                <li>
                    <input type="submit" value="Submit"/>
                </li>


            </ul>
        </form>
    </div>
</div>